import vue from '@vitejs/plugin-vue'
import {defineConfig} from 'vite'
import path from 'path'
/**
 * @type {import('vite').UserConfig}
 */
export default defineConfig(({command, mode}) => {
    return {
        plugins: [
            vue(),
        ],
        resolve: {
            alias: {
                "@": path.resolve(__dirname, "./src"),
            }
        },
        base: mode === 'development' ? '/' : '/ui/',
        server: {
            proxy: {
                '/ailicy': {
                    target: 'http://127.0.0.1:9090/',
                    changeOrigin: true,
                }
            }
        },
        css: {
    
        },
        build: {
            emptyOutDir: true
        }
    }
})

